home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPFault.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  190 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPFault.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPFault_h__
  6. #define __gen_nsISOAPFault_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMElement; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsISOAPFault */
  21. #define NS_ISOAPFAULT_IID_STR "99ec6694-535f-11d4-9a58-000064657374"
  22.  
  23. #define NS_ISOAPFAULT_IID \
  24.   {0x99ec6694, 0x535f, 0x11d4, \
  25.     { 0x9a, 0x58, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
  26.  
  27. /**
  28.  * This interface conveniently interprets information about a fault 
  29.  * that has been returned in a response message.
  30.  *
  31.  */
  32. class NS_NO_VTABLE nsISOAPFault : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPFAULT_IID)
  36.  
  37.   /**
  38.    * The DOM element representing the fault in the response SOAP message.
  39.    * This must be set for the rest of the interface to function correctly.
  40.    */
  41.   /* attribute nsIDOMElement element; */
  42.   NS_IMETHOD GetElement(nsIDOMElement * *aElement) = 0;
  43.   NS_IMETHOD SetElement(nsIDOMElement * aElement) = 0;
  44.  
  45.   /**
  46.    * The namespaceURI of the fault code.
  47.    */
  48.   /* readonly attribute AString faultNamespaceURI; */
  49.   NS_IMETHOD GetFaultNamespaceURI(nsAString & aFaultNamespaceURI) = 0;
  50.  
  51.   /**
  52.    * The fault code
  53.    */
  54.   /* readonly attribute AString faultCode; */
  55.   NS_IMETHOD GetFaultCode(nsAString & aFaultCode) = 0;
  56.  
  57.   /**
  58.    * The fault string
  59.    */
  60.   /* readonly attribute AString faultString; */
  61.   NS_IMETHOD GetFaultString(nsAString & aFaultString) = 0;
  62.  
  63.   /**
  64.    * The fault actor if one was specified.
  65.    */
  66.   /* readonly attribute AString faultActor; */
  67.   NS_IMETHOD GetFaultActor(nsAString & aFaultActor) = 0;
  68.  
  69.   /**
  70.    * The DOM element representing the fault details
  71.    */
  72.   /* readonly attribute nsIDOMElement detail; */
  73.   NS_IMETHOD GetDetail(nsIDOMElement * *aDetail) = 0;
  74.  
  75. };
  76.  
  77. /* Use this macro when declaring classes that implement this interface. */
  78. #define NS_DECL_NSISOAPFAULT \
  79.   NS_IMETHOD GetElement(nsIDOMElement * *aElement); \
  80.   NS_IMETHOD SetElement(nsIDOMElement * aElement); \
  81.   NS_IMETHOD GetFaultNamespaceURI(nsAString & aFaultNamespaceURI); \
  82.   NS_IMETHOD GetFaultCode(nsAString & aFaultCode); \
  83.   NS_IMETHOD GetFaultString(nsAString & aFaultString); \
  84.   NS_IMETHOD GetFaultActor(nsAString & aFaultActor); \
  85.   NS_IMETHOD GetDetail(nsIDOMElement * *aDetail); 
  86.  
  87. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  88. #define NS_FORWARD_NSISOAPFAULT(_to) \
  89.   NS_IMETHOD GetElement(nsIDOMElement * *aElement) { return _to GetElement(aElement); } \
  90.   NS_IMETHOD SetElement(nsIDOMElement * aElement) { return _to SetElement(aElement); } \
  91.   NS_IMETHOD GetFaultNamespaceURI(nsAString & aFaultNamespaceURI) { return _to GetFaultNamespaceURI(aFaultNamespaceURI); } \
  92.   NS_IMETHOD GetFaultCode(nsAString & aFaultCode) { return _to GetFaultCode(aFaultCode); } \
  93.   NS_IMETHOD GetFaultString(nsAString & aFaultString) { return _to GetFaultString(aFaultString); } \
  94.   NS_IMETHOD GetFaultActor(nsAString & aFaultActor) { return _to GetFaultActor(aFaultActor); } \
  95.   NS_IMETHOD GetDetail(nsIDOMElement * *aDetail) { return _to GetDetail(aDetail); } 
  96.  
  97. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  98. #define NS_FORWARD_SAFE_NSISOAPFAULT(_to) \
  99.   NS_IMETHOD GetElement(nsIDOMElement * *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElement(aElement); } \
  100.   NS_IMETHOD SetElement(nsIDOMElement * aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetElement(aElement); } \
  101.   NS_IMETHOD GetFaultNamespaceURI(nsAString & aFaultNamespaceURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFaultNamespaceURI(aFaultNamespaceURI); } \
  102.   NS_IMETHOD GetFaultCode(nsAString & aFaultCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFaultCode(aFaultCode); } \
  103.   NS_IMETHOD GetFaultString(nsAString & aFaultString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFaultString(aFaultString); } \
  104.   NS_IMETHOD GetFaultActor(nsAString & aFaultActor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFaultActor(aFaultActor); } \
  105.   NS_IMETHOD GetDetail(nsIDOMElement * *aDetail) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetail(aDetail); } 
  106.  
  107. #if 0
  108. /* Use the code below as a template for the implementation class for this interface. */
  109.  
  110. /* Header file */
  111. class nsSOAPFault : public nsISOAPFault
  112. {
  113. public:
  114.   NS_DECL_ISUPPORTS
  115.   NS_DECL_NSISOAPFAULT
  116.  
  117.   nsSOAPFault();
  118.  
  119. private:
  120.   ~nsSOAPFault();
  121.  
  122. protected:
  123.   /* additional members */
  124. };
  125.  
  126. /* Implementation file */
  127. NS_IMPL_ISUPPORTS1(nsSOAPFault, nsISOAPFault)
  128.  
  129. nsSOAPFault::nsSOAPFault()
  130. {
  131.   /* member initializers and constructor code */
  132. }
  133.  
  134. nsSOAPFault::~nsSOAPFault()
  135. {
  136.   /* destructor code */
  137. }
  138.  
  139. /* attribute nsIDOMElement element; */
  140. NS_IMETHODIMP nsSOAPFault::GetElement(nsIDOMElement * *aElement)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144. NS_IMETHODIMP nsSOAPFault::SetElement(nsIDOMElement * aElement)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* readonly attribute AString faultNamespaceURI; */
  150. NS_IMETHODIMP nsSOAPFault::GetFaultNamespaceURI(nsAString & aFaultNamespaceURI)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* readonly attribute AString faultCode; */
  156. NS_IMETHODIMP nsSOAPFault::GetFaultCode(nsAString & aFaultCode)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* readonly attribute AString faultString; */
  162. NS_IMETHODIMP nsSOAPFault::GetFaultString(nsAString & aFaultString)
  163. {
  164.     return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166.  
  167. /* readonly attribute AString faultActor; */
  168. NS_IMETHODIMP nsSOAPFault::GetFaultActor(nsAString & aFaultActor)
  169. {
  170.     return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172.  
  173. /* readonly attribute nsIDOMElement detail; */
  174. NS_IMETHODIMP nsSOAPFault::GetDetail(nsIDOMElement * *aDetail)
  175. {
  176.     return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178.  
  179. /* End of implementation class template. */
  180. #endif
  181.  
  182. #define NS_SOAPFAULT_CID                            \
  183. { /* 87d21ec1-539d-11d4-9a59-00104bdf5339 */        \
  184.   0x87d21ec1, 0x539d, 0x11d4,                       \
  185.  {0x9a, 0x59, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39} }
  186. #define NS_SOAPFAULT_CONTRACTID \
  187. "@mozilla.org/xmlextras/soap/fault;1"
  188.  
  189. #endif /* __gen_nsISOAPFault_h__ */
  190.